﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sponsors/SponsorMaster.Master"
    AutoEventWireup="true" CodeBehind="SponsorReport.aspx.cs" Inherits="Nivdal.Sponsors.SponsorReport" StylesheetTheme="SkinFile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="TitleLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_Reports %>"
        CssClass="TitleLabel"></asp:Label>
    <br />
    <br />
    <asp:FormView ID="CoachFormView" runat="server" DataSourceID="NewSponsorGetDetailsSqlDataSource">
        <ItemTemplate>
            <asp:Label ID="CurrentNumberOfCreditsTitleLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_CurrentNumberTeamsUnderSponsorship %>"></asp:Label>
            <asp:Label ID="CurrentNumberOfCreditsLabel" runat="server" CssClass="SmallTitleLabel"
                Text='<%# Eval("Credits") %>' />
            <br />
            <asp:Label ID="CurrentNumberTeamsUnderSponsorshipTitleLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_CurrentNumberTeamsUnderSponsorship %>"></asp:Label>
            <asp:Label ID="CurrentNumberTeamsUnderSponsorshipLabel" runat="server" CssClass="SmallTitleLabel"
                Text='<%# Eval("TeamsSponsored") %>' />
            <br />
            <asp:Label ID="MaximalNumberTeamsCanSponsoredTitleLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_MaximalNumberTeamsCanSponsored %>"></asp:Label>
            <asp:Label ID="MaximalNumberTeamsCanSponsoredLabel" runat="server" CssClass="SmallTitleLabel"
                Text='<%# Eval("TeamsLimit") %>' />
            <br />
        </ItemTemplate>
    </asp:FormView>
    <asp:SqlDataSource ID="NewSponsorGetDetailsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_NewSponsorGetDetails" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <br />
    <asp:GridView ID="paymentsGridview" runat="server" DataSourceID="SponsorGetPaymentsDataSource" AutoGenerateColumns="false"
     SkinID="Professional" AllowPaging="false">
    <EmptyDataTemplate>
        <asp:Label ID="NoTransfersLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_NoPaymentsYet %>" SkinID="GridLabel"></asp:Label>
    </EmptyDataTemplate>
    <Columns>
        <asp:TemplateField HeaderText="<%$ Resources:SponsorsResource, NewSponsor_Date %>">
            <ItemTemplate>
                <asp:Label ID="TransferDateLabel" runat="server" Text='<%# Eval("Date") %>' SkinID="GridLabel"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="<%$ Resources:SponsorsResource, NewSponsor_Payment %>" >
            <ItemTemplate>
              <asp:Label ID="TransferDateLabel" runat="server" Text='<%# Eval("Payment") %>' SkinID="GridLabel"></asp:Label> 
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="<%$ Resources:SponsorsResource, NewSponsor_PaymentType %>" >
            <ItemTemplate>
             <asp:Label ID="TransferDateLabel" runat="server" Text='<%# Eval("PaymentType") %>' SkinID="GridLabel"></asp:Label>    
            </ItemTemplate>
        </asp:TemplateField> 
    </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SponsorGetPaymentsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_NewSponsorGetPayments" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
</asp:Content>
